package com.rc.mutievcharger.dto.ylevcharger.terminal;

import com.rc.evcharger.common.annotation.ByteLength;
import com.rc.evcharger.common.base.yl.BaseYlCommand;
import com.rc.mutievcharger.dto.ylevcharger.terminal.req.YlHearBeatCommondReq;

/**
 * Create by Yang on 2021/4/26
 * (CMD=101)服务器应答心跳包信息
 */
public class YlHearBeatCommondResp extends BaseYlCommand {

    @ByteLength(length = 2)
    private String obligate1; //预留字段1
    @ByteLength(length = 2)
    private String obligate2; //预留字段1
    @ByteLength(length = 2)
    private String heatNumber; //心跳应答   累加，到最大值时为 1，重新累加

    public YlHearBeatCommondResp(YlHearBeatCommondReq req) {
        this.obligate1 = "00 00";
        this.obligate2 = "00 00";
        //this.terminalId = ShDataUtil.getTerminalIdFrame(req.getTerminalId());
        this.heatNumber = req.getHeatNumber();
    }

    public String getObligate1() {
        return obligate1;
    }

    public void setObligate1(String obligate1) {
        this.obligate1 = obligate1;
    }

    public String getObligate2() {
        return obligate2;
    }

    public void setObligate2(String obligate2) {
        this.obligate2 = obligate2;
    }

    public String getHeatNumber() {
        return heatNumber;
    }

    public void setHeatNumber(String heatNumber) {
        this.heatNumber = heatNumber;
    }

    @Override
    public Object getResult(String dataArea) {
        return null;
    }
}
